package com.ysqcould.curriculum.domain;

import com.ysqcould.common.annotation.Excel;
import com.ysqcould.common.core.domain.BaseEntity;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.math.BigDecimal;

/**
 * 课程视频对象 t_course
 * 
 * @author jcd
 * @date 2022-09-27
 */
@Data
public class Course extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 视频主键 */
    private Long id;

    /** 课程名称 */
    @Excel(name = "课程名称")
    private String courseName;

    /** 课程类型id */
    @Excel(name = "课程类型id")
    private Long courseTypeId;

    /** 课程标签id */
    @Excel(name = "课程标签id")
    private Long courseTagId;

    /** 课程介绍 */
    @Excel(name = "课程介绍")
    private String courseTitle;

    /** 课时目录id */
    @Excel(name = "课时目录id")
    private Long hourCatalogId;

    /** 学习时常：单位为分钟比如30分钟 */
    @Excel(name = "学习时常：单位为分钟比如30分钟")
    private String learnTime;

    /** 图片地址 */
    @Excel(name = "图片地址")
    private String pcUrl;

    /** 视频时长 */
    @Excel(name = "视频时长")
    private String duration;

    /** 视频地址 */
    @Excel(name = "视频地址")
    private String videoUrl;

    /** 视频首张图片地址 */
    @Excel(name = "视频首张图片地址")
    private String videoPcUrl;

    /** 讲师id */
    @Excel(name = "讲师id")
    private Long teacherId;

    /** 价格 */
    @Excel(name = "价格")
    private BigDecimal price;

    /** 优惠价格 */
    @Excel(name = "优惠价格")
    private BigDecimal discountsPrice;

    /** 收藏次数 */
    @Excel(name = "收藏次数")
    private Long collectCount;

    /** 观看次数 */
    @Excel(name = "观看次数")
    private Long watchCount;

    /** 学时积分 */
    @Excel(name = "学时积分")
    private Long integral;

    /** 协会id */
    @Excel(name = "协会id")
    private Long asId;

    /** 状态 */
    @Excel(name = "状态")
    private Long status;

    /** 推荐状态（0 不推荐 1 推荐） */
    @Excel(name = "推荐状态", readConverterExp = "0=,不=推荐,1=,推=荐")
    private Long recommendType;

    /** 视频id */
    @Excel(name = "视频id")
    private String videoId;

    /** 是否设置为轮播图（1是  0否） */
    @Excel(name = "是否设置为轮播图", readConverterExp = "1=是,0=否")
    private Long isSlideShow;

    /** 轮播图排序 */
    @Excel(name = "轮播图排序")
    private Long sort;
}
